package com.smartcanteen.order.mapper;


import com.smartcanteen.order.domain.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailMapper {

    void insertBatch(@Param("orderDetailList") List<OrderDetail> orderDetailList);

    @Select("select * from sc_order_detail where order_id = #{id}")
    List<OrderDetail> getById(Integer id);
}
